﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
using BUS;

namespace WEBSITE_BANDEAL.Admin
{
    public partial class loaibv_delete : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          
            int ma = int.Parse(Request.QueryString["id"]);
            int check = int.Parse(Request.QueryString["check"]);
            if (check == 1)
            {
               int t = LOAI_BAI_VIETBUS.CheckExist(ma);
               Response.Write(t);
            }
            else
            {
                LOAI_BAI_VIETBUS.Delete(ma);
                Response.Write(1);
            }
        }

        
    }
}